<?php
session_start();
require_once("functions.php");
require_once("functions_shared.php");
include("php/redirector.php");
date_default_timezone_set('Asia/Calcutta');
?>

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">
	  
	  <!--
	  Author: Roopam Poddar
	  Website: http://roopunk.com
	  Email: mailroopam@gmail.com
	  Last Edited: 17th December 2011	  
	  -->
	  
  <head>
	
	<?php include('php/head.php');?>
	
	<!-- importing the style sheets -->
	<link rel="stylesheet" type="text/css" href="base.css"></link>
	<link rel="icon" 
      type="image/png" 
      href="http://roopunk.com/gausipp/images/gausipp.png"></link>
	
	<!-- importing the scripts -->
	<script type="text/javascript" src="jquery.min.js"></script>
	<!--<script type="text/javascript" src="js/compressedjs.js"></script>-->
	
	<script type="text/javascript" src="base.js"></script>
	<script type="text/javascript" src="base2.js"></script>
	<script type="text/javascript" src="stream.js"></script>
	
	<script type="text/javascript" src="lionbars/jquery.lionbars.0.3.js"></script>
	<script type="text/javascript" src="jqueryRotate/jQueryRotate.2.2.js"></script>
	
	<!-- for custom google fonts -->
	<link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Bad+Script' rel='stylesheet' type='text/css'>
	
		<!-- setting a random background -->
	<script>
$(function () {
	//var num = Math.floor(Math.random()*9) + 1;  // returns a number between 1 and 9
	//document.body.style.background = "url(images/bg/"+num+".png)";
	//document.body.style.background = "url(images/bg/bg3.jpg) repeat";
	//$('#right-pane').css('min-height', $('#right-pane-content').height());
	});
</script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-27776102-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
  </head>
  
  
  <body>
  	<!-- for the facebook api -->
  	<div id="fb-root"></div>
  	 <script src="http://connect.facebook.net/en_US/all.js"></script>
  	 
  	 
	<div id="loggedin_user" style="display:none"><?php echo $_SESSION['user'];?></div>
   <div id="header-wrapper">
   <div id="header">
   <a href="index.php">
   <div style="width:120px;float:left;position:relative;margin:10px;background-image:url('images/logo.png');background-position: left top;background-size: 100%;background-repeat:no-repeat;height:40px"></div>
   </a>
   <div id="login-box">
   <?php include("php/header.php"); ?>
   </div>
   <div class="clear"></div>
   </div>
   </div>
   
   <div id="content">

   <div id="right-pane">
   <?php include("php/user_sidebar.php"); ?>
   </div>
   
   <div id="left-pane-bg"></div>
   <div id="left-pane">
	<?php include("php/content_main.php"); ?>
	</div>
	
	<div class="clear"></div>
   </div>
      
   
   <div id="show_msg_msg"></div>
   	<div id="float_box_wrapper"></div>
   	
   	<script>
      FB.init({
        appId  : '<?php echo $appp_id; ?>',
        frictionlessRequests: true,
      });

      function sendRequestToRecipients(user_ids, link) {
      	if(link == "") {
        FB.ui({method: 'send',
        	name: 'Invitation to join Gausipp',
        	link: '<?php echo $site_url; ?>',
        	picture: "http://roopunk.com/gausipp/images/logo.png",
	          to: user_ids, 
        });
       }
        else
        {
        FB.ui({method: 'send',
        	name: 'Invitation to join Gausipp',
        	link: '<?php echo $site_url; ?>?cat=group&gpid='+link+'&action=gausipp',
        	picture: "http://roopunk.com/gausipp/images/logo.png",
	          to: user_ids, 
        });
       }
      }      
      
      function requestCallback(response) {
        // Handle callback here
      }
    </script>
    
  </body>
</html>
